#!/bin/bash
lagniappe_root="/usr/local"
if [[ ! -h ./sysmodel ]]
then echo "Creating sysmodel symlink..." && ln -s $lagniappe_root/include/sysmodel ./sysmodel
fi
if [[ ! -h ./jar ]]
then echo "Creating jar symlink..." && ln -s $lagniappe_root/jar ./jar
fi
echo "Generating new application files..."
java -jar ./jar/lc.jar --app attack.xml
echo "Generating new main file..."
#java -jar ./jar/lc.jar --main order.xml sysmodel/cscamera.xml
java -jar ./jar/lc.jar --main attack.xml sysmodel/proc8sys.xml
#echo "Generating profile files..."
#java -jar ./jar/lc.jar --prof $1.xml sysmodel/proc16sys.xml
echo "Compiling..."
#make -j $1

